package com.example.demo;

import javax.persistence.Id;

import lombok.Data;

@Data
public class Ad {

    @Id
    private Long id;

    private String title;
    private String content;

    public Ad(long id, String title, String content) {
        this.id = id;
        this.title = title;
        this.content = content;
    }

}